/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package backupmonografia;

import javax.mail.PasswordAuthentication;

/**
 *
 * @author eduardo
 */

public class AutenticadorGmail extends javax.mail.Authenticator {

    private String sender;
    private String password;

    public AutenticadorGmail(String sender, String password) {
        this.sender = sender;
        this.password = password;
    }

    protected PasswordAuthentication getPasswordAuthentication() {
        return new PasswordAuthentication(sender, password);
    }

}
